Closed jubianchi closed 8 years ago
See atoum/atoum#384
<?php namespace tests\units; use atoum; class stdClass extends atoum { public function testFoo() { $this ->variable('foo')->{'=='}('foo') ->variable('foo')->{'!='}('bar') ->object($this->newInstance)->{'=='}($this->newInstance) ->object($this->newInstance)->{'!='}(new \exception) ->object($this->newTestedInstance)->{'==='}($this->testedInstance) ->object($this->newTestedInstance)->{'!=='}($this->newTestedInstance) ->integer(rand(0, 10))->{'<'}(11) ->integer(rand(0, 10))->{'<='}(10) ->integer(rand(0, 10))->{'>'}(-1) ->integer(rand(0, 10))->{'>='}(0) ; } }
see source/en/asserters/ztips.inc.rst add some explanation about it
See atoum/atoum#384