File tree Expand file tree Collapse file tree 5 files changed +23
-7
lines changed
tests/units/classes/asserters Expand file tree Collapse file tree 5 files changed +23
-7
lines changed Original file line number Diff line number Diff line change 11<?php
22
3- require_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor ' . DIRECTORY_SEPARATOR . ' autoload .php ' ;
3+ require_once __DIR__ . DIRECTORY_SEPARATOR . 'autoloader .php ' ;
44
55use
66 mageekguy \atoum \jsonSchema ,
77 Atoum \PraspelExtension
88;
99
10-
1110$ runner
1211 ->addExtension (new jsonSchema \extension ($ script ))
1312 ->addExtension (new PraspelExtension \Manifest ())
1413;
14+
15+ $ script ->noCodeCoverageForNamespaces ('mageekguy\atoum\asserters ' );
16+ $ script ->noCodeCoverageForClasses ('mageekguy\atoum\asserter ' );
Original file line number Diff line number Diff line change 11<?php
22
3- require_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor ' . DIRECTORY_SEPARATOR . 'autoload.php ' ;
3+ if (is_file ($ vendorAutoloader = __DIR__ . DIRECTORY_SEPARATOR . 'vendor ' . DIRECTORY_SEPARATOR . 'autoload.php ' ))
4+ {
5+ require_once $ vendorAutoloader ;
6+ }
7+
8+ require_once __DIR__ . DIRECTORY_SEPARATOR . 'autoloader.php ' ;
Original file line number Diff line number Diff line change @@ -13,11 +13,10 @@ matrix:
1313 - php : hhvm-nightly
1414
1515notifications :
16- irc : " irc.freenode.org#jubianchifr "
16+ irc : " irc.freenode.org##atoum "
1717
1818before_script :
1919 - composer install
2020
2121script :
2222 - vendor/bin/atoum --test-ext
23-
Original file line number Diff line number Diff line change 77atoum \autoloader::get ()
88 ->addNamespaceAlias ('atoum\jsonSchema ' , __NAMESPACE__ )
99 ->addDirectory (__NAMESPACE__ , __DIR__ . DIRECTORY_SEPARATOR . 'classes ' );
10- ;
10+ ;
Original file line number Diff line number Diff line change @@ -47,7 +47,17 @@ public function testSetWithJsonGrammar($json)
4747
4848 protected function testSetWithJsonGrammarDataProvider ()
4949 {
50- return $ this ->sampleMany ($ this ->realdom ->grammar (__DIR__ . '/../../../resources/json.pp ' ));
50+ $ parser = \Hoa \Compiler \Llk \Llk::load (new \Hoa \File \Read (__DIR__ . '/../../../resources/json.pp ' ));
51+ $ visitor = new \Hoa \Regex \Visitor \Isotropic (new \Hoa \Math \Sampler \Random ());
52+ $ coverage = new \Hoa \Compiler \Llk \Sampler \Coverage ($ parser , $ visitor );
53+ $ bound = new \Hoa \Compiler \Llk \Sampler \BoundedExhaustive ($ parser , $ visitor );
54+
55+ return array_merge (
56+ iterator_to_array ($ coverage ),
57+ iterator_to_array ($ bound )
58+ );
59+
60+ //return $this->sampleMany($this->realdom->grammar(__DIR__ . '/../../../resources/json.pp'));
5161 }
5262
5363 public function testValidates ()
You can’t perform that action at this time.
0 commit comments