Skip to content

Commit c3971bb

Browse files
authored
Merge pull request #107 from arunahk/master
tiny fix
2 parents 6e56ab5 + e3b9325 commit c3971bb

File tree

4 files changed

+8
-22
lines changed

4 files changed

+8
-22
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ vendor
22
.idea
33
composer.phar
44
tests/_data/cache
5-
composer.lock
5+
composer.lock
6+
tests/_helpers/_generated

docs/Test.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ $user = new User;
5858
test::double($user, ['getName' => 'davert']);
5959
test::double($user, ['getEmail' => '[email protected]']);
6060
$user->getName(); // => 'davert'
61-
$user->getEmail(); => '[email protected]'
61+
$user->getEmail();// => '[email protected]'
6262

6363
# create an instance of mocked class
6464
test::double('User')->construct(['name' => 'davert']); // via constructir

tests/_helpers/_generated/CodeGuyActions.php

Lines changed: 0 additions & 18 deletions
This file was deleted.

tests/unit/FunctionInjectorTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function testTemplate()
2828
public function testSave()
2929
{
3030
$this->funcInjector->save();
31-
exec('php -l '.$this->getFileName(), $output, $code);
31+
exec('php -l '.$this->funcInjector->getFileName(), $output, $code);
3232
verify($code)->equals(0);
3333
codecept_debug($this->funcInjector->getPHP());
3434
}
@@ -71,9 +71,12 @@ public function testVerifierFullyQualifiedNamespace()
7171
$func->verifyNeverInvoked(['hee']);
7272
}
7373

74+
/**
75+
* @test
76+
* @expectedException PHPUnit_Framework_ExpectationFailedException
77+
*/
7478
public function testFailedVerification()
7579
{
76-
$this->setExpectedException('PHPUnit_Framework_ExpectationFailedException');
7780
$func = test::func('demo', 'strlen', function() { return 10; });
7881
expect(strlen('hello'))->equals(10);
7982
$func->verifyNeverInvoked('strlen');

0 commit comments

Comments
 (0)