Lines Matching refs:this

51         $this->filename = sys_get_temp_dir() . '/phpunit.phpt';
52 touch($this->filename);
54 $this->phpUtil = $this->getMockForAbstractClass('PHPUnit_Util_PHP', [], '', false);
56 $this->testCase = new PHPUnit_Extensions_PhptTestCase($this->filename, $this->phpUtil);
61 @unlink($this->filename);
63 $this->filename = null;
64 $this->testCase = null;
74 file_put_contents($this->filename, $content);
79 $this->setPhpContent(self::EXPECT_CONTENT);
83 $this->phpUtil
84 ->expects($this->once())
87 ->will($this->returnValue(['stdout' => '', 'stderr' => '']));
89 $this->testCase->run();
100 $this->setPhpContent($phptContent);
102 $this->phpUtil
103 ->expects($this->at(0))
106 ->will($this->returnValue(['stdout' => '', 'stderr' => '']));
108 $this->testCase->run();
119 $this->setPhpContent($phptContent);
121 $this->phpUtil
122 ->expects($this->once())
125 ->will($this->returnValue(['stdout' => 'skip: Reason', 'stderr' => '']));
127 $this->testCase->run();
138 $this->setPhpContent($phptContent);
140 $this->phpUtil
141 ->expects($this->at(1))
145 $this->testCase->run();
154 $this->setPhpContent('');
156 $this->testCase->run();
165 $this->setPhpContent(
173 $this->testCase->run();
182 $this->setPhpContent(
192 $this->testCase->run();
197 $this->setPhpContent(self::EXPECT_CONTENT);
199 $this->phpUtil
200 ->expects($this->once())
203 ->will($this->returnValue(['stdout' => 'Hello PHPUnit!', 'stderr' => '']));
205 $result = $this->testCase->run();
207 $this->assertTrue($result->wasSuccessful());
212 $this->setPhpContent(self::EXPECTF_CONTENT);
214 $this->phpUtil
215 ->expects($this->once())
218 ->will($this->returnValue(['stdout' => 'Hello PHPUnit!', 'stderr' => '']));
220 $result = $this->testCase->run();
222 $this->assertTrue($result->wasSuccessful());
227 $this->setPhpContent(self::EXPECTREGEX_CONTENT);
229 $this->phpUtil
230 ->expects($this->once())
233 ->will($this->returnValue(['stdout' => 'Hello PHPUnit!', 'stderr' => '']));
235 $result = $this->testCase->run();
237 $this->assertTrue($result->wasSuccessful());
253 $this->assertEquals($expected, $settings);