Permalink
Browse files

Fix up tests for Zend\Code

  • Loading branch information...
1 parent bc27dc6 commit ea4052fa51b3c6d312d2c00ed5770766644d6d34 Martin Meredith committed Oct 5, 2012
@@ -2,7 +2,10 @@
namespace ZendTest\Code\Reflection\TestAsset;
+use Zend\Config as ZendConfig;
use FooBar\Foo\Bar;
+use One\Two\Three\Four\Five as ottff;
+
class TestSampleClass8
{
@@ -81,8 +81,8 @@ public function testClassScannerCanReturnLineNumbers()
$file = new FileScanner(__DIR__ . '/../TestAsset/BarClass.php');
$class = $file->getClass('ZendTest\Code\TestAsset\BarClass');
- $this->assertEquals(11, $class->getLineStart());
- $this->assertEquals(34, $class->getLineEnd());
+ $this->assertEquals(10, $class->getLineStart());
+ $this->assertEquals(33, $class->getLineEnd());
}
}
@@ -62,8 +62,8 @@ public function testMethodScannerReturnsLineNumbersForMethods()
$file = new FileScanner(__DIR__ . '/../TestAsset/BarClass.php');
$class = $file->getClass('ZendTest\Code\TestAsset\BarClass');
$method = $class->getMethod('three');
- $this->assertEquals(28, $method->getLineStart());
- $this->assertEquals(32, $method->getLineEnd());
+ $this->assertEquals(27, $method->getLineStart());
+ $this->assertEquals(31, $method->getLineEnd());
}
public function testMethodScannerReturnsBodyMethods()

0 comments on commit ea4052f

Please sign in to comment.