Skip to content

Commit e969594

Browse files
author
Aruna Lakmal
committed
* fix issue in getting file name
* remote depricated method * ignore generated files from git
1 parent 03fd4a2 commit e969594

File tree

3 files changed

+7
-21
lines changed

3 files changed

+7
-21
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

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 '.__FILE__, $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)