Permalink
Browse files

Improve code coverage

  • Loading branch information...
sebastianbergmann committed Mar 4, 2017
1 parent b91530b commit 3488be0a7b346cd6e5361510ed07e88f9bea2e88
Showing with 41 additions and 2 deletions.
  1. +25 −2 tests/WizardTest.php
  2. +8 −0 tests/_fixture/Bar.php
  3. +8 −0 tests/_fixture/Foo.php
@@ -29,9 +29,32 @@ protected function setUp()
public function testMethodCanBeLookedUp()
{
require __DIR__ . '/_fixture/Foo.php';
$this->assertEquals(
'Foo::method',
$this->wizard->lookup(
__DIR__ . '/_fixture/Foo.php',
6
)
);
return $this->wizard;
}
/**
* @depends testMethodCanBeLookedUp
*/
public function testMethodCanBeLookedUp2(Wizard $wizard)
{
require __DIR__ . '/_fixture/Bar.php';
$this->assertEquals(
__METHOD__,
$this->wizard->lookup(__FILE__, __LINE__)
'Bar::method',
$wizard->lookup(
__DIR__ . '/_fixture/Bar.php',
6
)
);
}
@@ -0,0 +1,8 @@
<?php
class Bar
{
public function method()
{
// ...
}
}
@@ -0,0 +1,8 @@
<?php
class Foo
{
public function method()
{
// ...
}
}

0 comments on commit 3488be0

Please sign in to comment.