Tests/CrawlJobTest.php
/**
     * @test
     * @testdox Tests if factory return correct values.
     */
@test
@testdox Tests if factory return correct values.
@test @testdox Tests if factory return correct values .
public function ifFactoryReturnCorrectValues()
    {
        $data = [
            'url' => 'http://dummy.nl/dummy.html',
            'base_url' => 'http://dummy.nl/',
            'blacklist' => [],
            'metadata' => ['core' => 'core2'],
            'whitelist' => [],
            'queueName' => null
        ];
        $bodyCrawlJob = json_encode($data);
        $message = new AMQPMessage($bodyCrawlJob);
        $crawlJob = CrawlJob::create($message);
        $this->assertSame($data, $crawlJob->toArray());
    }
public function ifFactoryReturnCorrectValues ( ) { $ data = [ 'url' => 'http://dummy.nl/dummy.html' , 'base_url' => 'http://dummy.nl/' , 'blacklist' => [ ] , 'metadata' => [ 'core' => 'core2' ] , 'whitelist' => [ ] , 'queueName' => null ] ; $ bodyCrawlJob = json_encode ( $ data ) ; $ message = new AMQPMessage ( $ bodyCrawlJob ) ; $ crawlJob = CrawlJob :: create ( $ message ) ; $ this -> assertSame ( $ data , $ crawlJob -> toArray ( ) ) ; }
@test
 @testdox Tests if factory return correct values.
@test @testdox Tests if factory return correct values .