Skip to content

Commit f36f645

Browse files
committed
Update test for xdebug
1 parent 0dbd5bd commit f36f645

File tree

3 files changed

+1810
-9
lines changed

3 files changed

+1810
-9
lines changed

tests/PEARX/PackageXml/ParserTest.php

+16
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,22 @@ public function testParser($file)
4545
}
4646
}
4747

48+
public function testForExtension()
49+
{
50+
$parser = new PEARX\PackageXml\Parser;
51+
ok($parser);
52+
53+
$package = $parser->parse('tests/data/package_xml/xdebug/package.xml');
54+
ok($package);
55+
ok($package->name);
56+
ok($package->getChannel());
57+
ok($package->getDate());
58+
ok($package->getTime());
59+
ok($package->getDateTime() );
60+
is('xdebug',$package->getProvidesExtension());
61+
ok($package->getZendExtSrcRelease());
62+
}
63+
4864
public function testForCompatibility()
4965
{
5066
$parser = new PEARX\PackageXml\Parser;

tests/bootstrap.php

+1-9
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,2 @@
11
<?php
2-
require 'PHPUnit/TestMore.php';
3-
require 'Universal/ClassLoader/BasePathClassLoader.php';
4-
define('ROOT', dirname(__DIR__) );
5-
$classLoader = new \Universal\ClassLoader\BasePathClassLoader(array(
6-
ROOT . '/src',
7-
ROOT . '/vendor/pear',
8-
));
9-
$classLoader->useIncludePath(false);
10-
$classLoader->register();
2+
require '';

0 commit comments

Comments
 (0)