Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Cleanup
  • Loading branch information
sebastianbergmann committed Sep 6, 2014
1 parent fdb5df3 commit 7a2f5ae
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 58 deletions.
8 changes: 0 additions & 8 deletions build.xml
Expand Up @@ -30,14 +30,6 @@
</exec>
</target>

<target name="phpab" description="Generate autoloader script">
<exec executable="phpab">
<arg value="--output" />
<arg path="tests/autoload.php" />
<arg path="tests" />
</exec>
</target>

<target name="phpcs" description="Find coding standard violations using PHP_CodeSniffer">
<exec executable="phpcs">
<arg value="--standard=PSR2" />
Expand Down
10 changes: 6 additions & 4 deletions composer.json
Expand Up @@ -36,13 +36,15 @@
"src/"
]
},
"autoload-dev": {
"classmap": [
"tests/_fixture/"
]
},
"extra": {
"branch-alias": {
"dev-master": "2.2.x-dev"
}
},
"include-path": [
""
]
}
}

8 changes: 4 additions & 4 deletions tests/MockObject/nonexistent_class.phpt
@@ -1,13 +1,13 @@
--TEST--
PHPUnit_Framework_MockObject_Generator::generate('Foo', array(), 'MockFoo', TRUE, TRUE)
PHPUnit_Framework_MockObject_Generator::generate('NonExistentClass', array(), 'MockFoo', TRUE, TRUE)
--FILE--
<?php
require __DIR__ . '/../../vendor/autoload.php';

$generator = new PHPUnit_Framework_MockObject_Generator;

$mock = $generator->generate(
'Foo',
'NonExistentClass',
array(),
'MockFoo',
TRUE,
Expand All @@ -17,11 +17,11 @@ $mock = $generator->generate(
print $mock['code'];
?>
--EXPECTF--
class Foo
class NonExistentClass
{
}

class MockFoo extends Foo implements PHPUnit_Framework_MockObject_MockObject
class MockFoo extends NonExistentClass implements PHPUnit_Framework_MockObject_MockObject
{
private $__phpunit_invocationMocker;
private $__phpunit_originalObject;
Expand Down
41 changes: 0 additions & 41 deletions tests/autoload.php

This file was deleted.

1 change: 0 additions & 1 deletion tests/bootstrap.php
@@ -1,5 +1,4 @@
<?php
require __DIR__ . '/autoload.php';
require __DIR__ . '/_fixture/FunctionCallback.php';
require __DIR__ . '/../vendor/autoload.php';

0 comments on commit 7a2f5ae

Please sign in to comment.