Commit 3e5c5bd96a73bb6f22c549e71e1748f200628c18

Authored by Kevin Fourie
1 parent 04e7f85d

Added object validity test to unit test.

Committed By: Kevin Fourie
Reviewed By: Megan Watson

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@9734 c91229c3-7414-0410-bfa2-8a42b809f60b
tests/documentProcessor/testExtracters.php
... ... @@ -115,6 +115,9 @@ class DocumentExtractorsTestCase extends KTUnitTestCase {
115 115 $extractors[$res['name']] = $extractor;
116 116 }
117 117  
  118 + $this->assertNotNull($extractor);
  119 + if(empty($extractor)) return;
  120 +
118 121 // Extract content
119 122 $targetFile = tempnam($this->tempPath, 'ktindexer');
120 123  
... ... @@ -148,4 +151,4 @@ class DocumentExtractorsTestCase extends KTUnitTestCase {
148 151 }
149 152 }
150 153  
151   -?>
152 154 \ No newline at end of file
  155 +?>
... ...