22
33namespace phpmock \integration ;
44
5+ use PHPUnit \Framework \TestCase ;
6+
57/**
68 * Tests MockDelegateFunctionBuilder.
79 *
1012 * @license http://www.wtfpl.net/txt/copying/ WTFPL
1113 * @see MockDelegateFunctionBuilder
1214 */
13- class MockDelegateFunctionBuilderTest extends \PHPUnit_Framework_TestCase
15+ class MockDelegateFunctionBuilderTest extends TestCase
1416{
1517
1618 /**
@@ -34,14 +36,14 @@ public function testDiverseSignaturesProduceDifferentClasses()
3436 {
3537 $ builder = new MockDelegateFunctionBuilder ();
3638
37- $ builder ->build (create_function ( '' , '' ) );
39+ $ builder ->build (' f0 ' );
3840 $ class1 = $ builder ->getFullyQualifiedClassName ();
3941
40- $ builder ->build (create_function ( ' $a ' , '' ) );
42+ $ builder ->build (' f1 ' );
4143 $ class2 = $ builder ->getFullyQualifiedClassName ();
4244
4345 $ builder2 = new MockDelegateFunctionBuilder ();
44- $ builder2 ->build (create_function ( ' $a, $b ' , '' ) );
46+ $ builder2 ->build (' f2 ' );
4547 $ class3 = $ builder2 ->getFullyQualifiedClassName ();
4648
4749 $ this ->assertNotEquals ($ class1 , $ class2 );
@@ -56,13 +58,12 @@ public function testDiverseSignaturesProduceDifferentClasses()
5658 */
5759 public function testSameSignaturesProduceSameClass ()
5860 {
59- $ signature = '$a ' ;
6061 $ builder = new MockDelegateFunctionBuilder ();
6162
62- $ builder ->build (create_function ( $ signature , '' ) );
63+ $ builder ->build (' f1 ' );
6364 $ class1 = $ builder ->getFullyQualifiedClassName ();
6465
65- $ builder ->build (create_function ( $ signature , '' ) );
66+ $ builder ->build (' f1 ' );
6667 $ class2 = $ builder ->getFullyQualifiedClassName ();
6768
6869 $ this ->assertEquals ($ class1 , $ class2 );
@@ -74,6 +75,8 @@ public function testSameSignaturesProduceSameClass()
7475 * @test
7576 * @backupStaticAttributes enabled
7677 * @dataProvider provideTestBackupStaticAttributes
78+ *
79+ * @doesNotPerformAssertions
7780 */
7881 public function testBackupStaticAttributes ()
7982 {
@@ -100,6 +103,8 @@ public function provideTestBackupStaticAttributes()
100103 * @test
101104 * @runInSeparateProcess
102105 * @dataProvider provideTestDeserializationInNewProcess
106+ *
107+ * @doesNotPerformAssertions
103108 */
104109 public function testDeserializationInNewProcess ($ data )
105110 {
0 commit comments